package com.aceitunaproject.client.commands.implementation.parameters;

import com.aceitunaproject.client.commands.Parameter;

/**
 * Basic parameter abstract class
 * @author Federico Bergstein
 *
 * @param <T> the Class of the value the parameter represents
 */
public abstract class BasicParameter<T> implements Parameter<T> {

	protected String previousWords = "";
	protected String laterWords = "";
	protected String name = "";
	protected T value = null;

	public BasicParameter(String name, String previousWords, String laterWords) {
		this.previousWords = previousWords;
		this.laterWords = laterWords;
		this.name = name;
	}

	
	public String getLaterWords() {
	
		return laterWords;
	}

	
	public String getName() {
	
		return name;
	}

	
	
	public String getPreviousWords() {
	
		return previousWords;
	}

	
	public T getValue() {
		
		return value;
	}


	
	public void setValue(T value) {
		this.value = value; 
		
	}
	
	

}